<template>
  
    <div class="container">
        <Header></Header> 
        <el-text class="mx-1" type="primary">欢迎来到丝路点餐系统，请扫码</el-text>
        <div >
          <ul class="train_mode">
            <li>
              <el-button @click="goToJavaMidLevel">扫一扫</el-button>
            </li>
        </ul>
          
        </div>
        
    </div>
  </template>
  
  <script>
  import { queuePostFlushCb } from 'vue';
import Header from '../components/Header.vue'
  import { useRouter } from 'vue-router';
  
  export default {
    name: 'App',
    components: {
      Header
    },
    methods: {
      goToJavaMidLevel() {
        const router = useRouter();
        this.$router.push('/scan-qr-code');
      }
    }
  };
  </script>
  
  <style>
  
  .mx-1{
    margin-top: 10%;
    font-size: 40px;
  }
  .text
  {
    color: rgb(199, 49, 52);
    margin-top: 20px;
  }
  .train_mode{
    display: flex;
    flex-direction: row;
    margin: 100px; 
    column-gap: 30px;
  }
  .container {
    /* background-image: url("../public/assets/a.jpg"); */
  
    background-color: rgba(138, 203, 250, 0.8);
    height:100%;
  
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .clr {
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    height:100%;display: flex;
    align-items: center;
    flex-direction: column;
  }
  html, body,#app {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  </style>